package com.java复习.练习一;

import java.util.Scanner;

public class WhtchTelevision {
    public static void main(String[] args) {
        Scanner myScanner = new Scanner(System.in);
        System.out.println("请输入频道：");
        int a = myScanner.nextInt();
        Television television1 = new Television();
        television1.setChannel(a);

        System.out.println("请输入音量：");
        int b = myScanner.nextInt();
        television1.setVolume(b);



    }
}
